/**
 * 
 */
package com.mvc.service.healthmanager.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.model.healthmanager.archive.Apparatus;
import com.mvc.service.healthmanager.ApparatusService;
import com.mvc.utils.StringUtil;

/**
 * 器械信息接口
 * @author qingjie
 *
 */
@Service
public class ApparatusServiceImpl implements ApparatusService{
	
	@Autowired
	private BaseDaoI<Apparatus> aBaseDaoI;

	@Override
	public Apparatus getApparatu(Apparatus apparatu) {
		Map<String, Object> params = StringUtil.beanToMap(apparatu);
		return aBaseDaoI.get(StringUtil.getHql("Apparatus", params, "asc"), params);
	}

}
